﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SPIWareMVVM.ViewModels;

namespace SPIWareMVVM.Views.Commands
{
    public class SaveCommand : BaseCommand
    {
        public SaveCommand(BaseViewModel sender)
            : base(sender)
        {
            _sender = (ApplicationViewModel)sender;
        }

        public override void Execute(object parameter)
        {
            ApplicationData.DataContext.SubmitChanges();
        }
    }
}
